/**
 * 
 */
package com.minyon_web_admin.common.bean;

import java.io.Serializable;
import java.util.List;

/** 
 * ClassName: DataTablesBean <br/> 
 * 功能描述：bootstrap datatables数据返回实体类<br/> 
 * Reason: TODO ADD REASON(可选). <br/> 
 * date: 2016年10月23日 上午11:06:54 <br/> 
 * 
 * @author wuwenya 
 * @version  
 * @since JDK 1.7 
 */
public class DataTablesBean<T> implements Serializable {

	private static final long serialVersionUID = 8172262630982712326L;
    //与datatales 加载的“dataSrc"对应  
    private List<T> data;//数据为空是 前端应返回空字符串 
    //数据库里总共记录数
    private int iTotalRecords;   //实际的行数
    //过滤后的记录数
    private int iTotalDisplayRecords;//显示的行数,这个要和iTotalRecords写的一样
    //请求次数计数器
    private int draw;
    
    private int  sEcho;
    private String msg;
    private Boolean success;

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public int getiTotalRecords() {
		return iTotalRecords;
	}

	public void setiTotalRecords(int iTotalRecords) {
		this.iTotalRecords = iTotalRecords;
	}

	public int getiTotalDisplayRecords() {
		return iTotalDisplayRecords;
	}

	public void setiTotalDisplayRecords(int iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}

	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}

	public int getsEcho() {
		return sEcho;
	}

	public void setsEcho(int sEcho) {
		this.sEcho = sEcho;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

     
}
